package la.renzhen.rtpt.admin.boot.starter.consul;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * @author <a href="mailto:zhouhaichao@2008.sina.com">haiker</a>
 * @version 18/05/2018 11:42 AM
 */
@Data
@Validated
@ConfigurationProperties("rtpt.admin.consul")
public class ConsulProperties {

    @NotNull
    String address = "localhost:8500";

    @NotNull
    String module = "rtpt";

}